package com.ea.admin.pojo.param.department;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddDepartmentParam {
    @ApiModelProperty("上级部门的id")
    private String supDeptId;

    @ApiModelProperty(value = "部门名称", required = true)
    @NotBlank(message = "部门名称不能为空")
    @Size(max = 20, message = "部门名称不能超过20个字符")
    private String deptName;

    @ApiModelProperty(value = "部门所属单位", required = true)
    @NotBlank(message = "部门所属单位不能为空")
    private String companyId;

    @ApiModelProperty(value = "部门联系人的AccountId")
    private String deptContactAccountId;

    @ApiModelProperty(value = "部门联系人名称")
    @Size(max = 20, message = "部门联系人名称不能超过20个字符")
    private String deptContactName;

    @ApiModelProperty(value = "部门联系人手机号码")
    @Size(max = 11, message = "部门联系人手机号码不能超过11个字符")
    private String deptContactPhoneNum;

    @ApiModelProperty(value = "部门联系人用户名")
    @Size(max = 20, message = "部门联系人用户名不能超过20个字符")
    private String deptContactUsername;

    @ApiModelProperty(value = "部门联系人密码")
    private String deptContactPassword;

    @ApiModelProperty(value = "部门联系人确认密码")
    private String deptContactRePassword;
}
